

export function createRouteGuard(router) {
    // 路由守卫
    router.beforeEach((to, from, next) => {
        // const { isLogin } = localStorage;
        // isLogin || to.name === "Login" ? next() : next({ name: "Login" });
        console.log(to, from, next)
        next()
    });
}